<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
//
Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::group(['middleware'=>'auth:api'],function(){
  //  Route::get('qrcode/show',['as'=>'qrcode.show','uses'=>'QrcodeController@index','middleware'=>[]]);
});
Route::get('qrcode/show',['as'=>'qrcode.show','uses'=>'QrcodeController@index','middleware'=>[]]);
Route::get('hprose/rpc',['as'=>'hprose.rpc','uses'=>'QrcodeController@getHproseRpc','middleware'=>[]]);
Route::get('test_status',['as'=>'test_status','uses'=>'QrcodeController@testStatus','middleware'=>[]]);
Route::get('test_status',['as'=>'test_status','uses'=>'QrcodeController@testStatus','middleware'=>[]]);
Route::post('upload',['as'=>'upload','uses'=>'UploadController@upload','middleware'=>[]]);
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
Route::get('/debug-sentry', function () {
  throw new Exception('My first Sentry error!');
});
